<template>
  <div class="my-board card">
    <div v-for="(message,index) in commits" v-bind:key="index">
      <div>
        <message :message="message" :type="1"></message>
        <div class="message-board" v-for="(message,index) in message.reply" v-bind:key="index">
          <message :message="message" :type="2"></message>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Message from "@/public/board/message";

export default {
  name: "Board",
  components: {Message},
  props: {
    commits: {
      type: Array,
      default: function () {
        return []
      }
    }
  },
  data() {
    return {}
  }
}
</script>

<style scoped>
.my-board {

}
</style>